# import requests
#
# req = requests.get('https://sputniknews.cn/services/archive/widget/more.html?id=1040446055&date=20220402T122008&articlemask=lenta&type=lenta')
# print(req.text)
import datetime
import time


def time_trans(number):
    return datetime.datetime.utcfromtimestamp(number).strftime('%Y-%m-%d %H:%M:%S')
def timet(number):


    # 转换成localtime
    time_local = time.localtime(number)
    # 转换成新的时间格式(2016-05-05 20:28:54)
    return time.strftime("%Y-%m-%d %H:%M:%S", time_local)
    # ————————————————原文链接：https: // blog.csdn.net / Wenweno0o / article / details / 121852697
print(timet(1648924140))
